package com.study.operFile;

import java.io.*;

/**
 * @author ：HBZ
 * @date ：Created in 2020/12/28 16:17
 * @description：
 * @modified By：
 */
public class operFile {
    public static void main(String[] args) throws IOException {
        File file = new File("E://temp//1.txt");
        BufferedReader br = new BufferedReader(new FileReader(file));
        BufferedWriter wr = new BufferedWriter(new FileWriter("E://temp//out.txt"));
        String line;
        while ((line = br.readLine()) != null) {
            if(line.indexOf("null")>0){
                continue;
            }
            int indexStr=line.indexOf("(\"");
            String str="setSettleVO.set";
            str+=(line.substring(indexStr+2,indexStr+3)).toUpperCase();
            str+=line.substring(indexStr+3);
//            System.out.println(line.substring(0,indexStr+2));
//            System.out.println(str);
//            System.out.println(line.substring(indexStr+3));
            str=  str.replace("\",","(");
            System.out.println(str);
            wr.write(str+"\n");
        }
        wr.flush();
        wr.close();

    }
}
